<template>
	<view class="wrapper">
		<view class="info">
			<view class="info-li">
				<view class="info-li-1">持仓市值</view>
				<view class="info-li-2">3621838</view>
			</view>
			<view class="info-li">
				<view class="info-li-1">持仓市值</view>
				<view class="info-li-2 redtext">3621838</view>
			</view>
			<view class="info-li">
				<view class="info-li-1">持仓市值</view>
				<view class="info-li-2 redtext">3621838</view>
			</view>
		</view>
		<view class="info-list">
			<view class="type">
				<view class="type-li active">当前持仓</view>
				<view class="type-li">历史持仓</view>
			</view>
			<view class="info-list-list">
				<view class="checkmarket">
					<view class="action-wrapper">
						<view class="action-li">
							<view class="name">名称代码</view>
							<image src="../../static/analysis/analysis/icon6.png" class="label-ud" mode=""></image>
						</view>
						<view class="action-li">
							<view class="name">幅度</view>
							<image src="../../static/analysis/analysis/icon6.png" class="label-ud" mode=""></image>
						</view>
						<view class="action-li">
							<view class="name">最新</view>
							<image src="../../static/analysis/analysis/icon6.png" class="label-ud" mode=""></image>
						</view>
						<view class="action-li">
							<view class="name">涨幅</view>
							<image src="../../static/analysis/analysis/icon6.png" class="label-ud" mode=""></image>
						</view>
					</view>
					<view class="marketlist">
						<view class="marketlist-li redtext">
							<view class="info1">
								<view class="name">上证指数</view>
								<view class="number">1A001</view>
							</view>
							<view class="info1">
								<view class="name">1400</view>
								<view class="number">1400</view>
							</view>
							<view class="info1">
								<view class="name">3.354</view>
								<view class="number">3.680</view>
							</view>
							<view class="info1">
								<view class="name">-449.01</view>
								<view class="number">-9.72%</view>
							</view>
						</view>
						<view class="marketlist-li redtext">
							<view class="info1">
								<view class="name">上证指数</view>
								<view class="number">1A001</view>
							</view>
							<view class="info1">
								<view class="name">1400</view>
								<view class="number">1400</view>
							</view>
							<view class="info1">
								<view class="name">3.354</view>
								<view class="number">3.680</view>
							</view>
							<view class="info1">
								<view class="name">-449.01</view>
								<view class="number">-9.72%</view>
							</view>
						</view>
					</view>
				</view>
				<!-- <view class="empty">
					<image src="../../static/trade/blocktrading/empty.png" mode=""></image>
					<view class="label">~暂无数据~</view>
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
</script>

<style lang="scss">
	page {
		width: 100%;
		height: 100%;
		background-color: #F6F6FB;
	}

	.wrapper {
		height: 100%;
		box-sizing: border-box;
		background: url('../../static/trade/blocktrading/bg.png') top center no-repeat;
		background-size: 100% 381rpx;
		padding-top: 1rpx;
	}

	.info {
		margin: 24rpx auto;
		width: 684rpx;
		height: 180rpx;
		background: #F8F8F8;
		border-radius: 23rpx;
		display: flex;
		justify-content: space-around;
		align-items: center;

		.info-li {
			width: 50%;
			text-align: center;

			.info-li-1 {
				font-size: 26rpx;
				color: #262626;
				margin-bottom: 10rpx;
			}

			.info-li-2 {
				font-weight: bold;
				font-size: 32rpx;
				color: #262626;
			}

		}

		.info-li:first-child {
			border-right: 1rpx solid #e5e5e5;
		}

		.info-li:nth-child(2) {
			border-right: 1rpx solid #e5e5e5;
		}
	}

	.info-list {
		margin: 40rpx auto;
		width: 683rpx;
		height: 397rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(8, 55, 125, 0.15);
		border-radius: 20rpx;

		.type {
			height: 62rpx;
			display: flex;
			justify-content: space-between;
			background: #F7FAFF;

			.type-li {
				width: 50%;
				height: 62rpx;
				line-height: 62rpx;
				font-size: 24rpx;
				color: #262626;
				text-align: center;
				border-radius: 20rpx 20rpx 0rpx 0rpx;
			}

			.active {
				height: 72rpx;
				line-height: 72rpx;
				position: relative;
				top: -10rpx;
				background: #fff;
				border-radius: 20rpx 20rpx 0rpx 0rpx;
				font-weight: bold;
				font-size: 28rpx;
				color: #262626;
			}
		}
	}

	.checkmarket {
		background-color: #fff;
		padding: 0 33rpx 0;
		margin-bottom: 32rpx;

		.title {
			font-weight: bold;
			font-size: 28rpx;
			color: #262626;
			position: relative;
			padding-left: 24rpx;
		}

		.title::before {
			content: '';
			position: absolute;
			top: 10rpx;
			left: 0;
			z-index: 1;
			width: 6rpx;
			height: 24rpx;
			background-color: #08377D;
			border-radius: 2rpx;
		}

		.action-wrapper {
			margin-top: 24rpx;
			display: flex;
			justify-content: space-between;

			.action-li {
				width: 25%;
				height: 71rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				font-weight: 500;
				font-size: 24rpx;
				color: #999999;

				image {
					height: 23rpx;
					width: 23rpx;
					margin-right: 10rpx;
				}

				.label-ud {
					height: 19rpx;
					width: 13rpx;
					margin-left: 10rpx;
				}
			}
		}

		.marketlist {
			.marketlist-li {
				height: 104rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 1rpx solid #E5E5E5;

				.info1 {
					width: 25%;
					text-align: center;

					.name {
						font-weight: bold;
						font-size: 24rpx;
						line-height: 36rpx;
					}

					.number {
						font-weight: bold;
						font-size: 24rpx;
						line-height: 36rpx;
					}
				}

			}

			.addaction {
				display: flex;
				justify-content: center;
				align-items: center;
				margin: 57rpx auto;
				font-weight: 500;
				font-size: 28rpx;
				color: #999999;

				image {
					width: 32rpx;
					height: 32rpx;
					margin-right: 12rpx;
				}
			}
		}
	}

	.empty {
		width: 244rpx;
		height: 113rpx;
		margin: 50rpx auto;
		text-align: center;
		font-size: 24rpx;
		color: #999999;

		image {
			width: 100%;
			height: 100%;
		}
	}
</style>